package model;

/**
 * Created by Administrator on 2016/6/10.
 */
public class Column {
    private String columnName;
    private String columnType;
    private Integer columnSize;
    private NULLINFO isNullable;
    private String defultValue;
    private String remark;

    public Column(String columnName, String columnType, Integer columnSize, NULLINFO isNullable, String defultValue, String remark) {
        this.columnName = columnName;
        this.columnType = columnType;
        this.columnSize = columnSize;
        this.isNullable = isNullable;
        this.defultValue = defultValue;
        this.remark = remark;
    }

    public Column() {

    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getColumnName() {
        return columnName;
    }

    public void setColumnName(String columnName) {
        this.columnName = columnName;
    }

    public String getColumnType() {
        return columnType;
    }

    public void setColumnType(String columnType) {
        this.columnType = columnType;
    }

    public Integer getColumnSize() {
        return columnSize;
    }

    public void setColumnSize(Integer columnSize) {
        this.columnSize = columnSize;
    }

    public NULLINFO getIsNullable() {
        return isNullable;
    }

    public void setIsNullable(NULLINFO isNullable) {
        this.isNullable = isNullable;
    }

    public String getDefultValue() {
        return defultValue;
    }

    public void setDefultValue(String defultValue) {
        this.defultValue = defultValue;
    }

    public enum NULLINFO{
        NULLABLE,NOTNULLABLE;
        String name = this.toString();
        public void  NULLINFO(String s){
            this.name = s;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        @Override
        public String toString() {
            if(name == null)
                return super.toString();
            else
                return name;
        }
    }
}
